package com.atguigu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * - **默认的包扫描规则**
 * - - `@SpringBootApplication` 标注的类就是主程序类
 *   - **SpringBoot只会扫描主程序所在的包及其下面的子包，自动的component-scan功能**
 *   - **自定义扫描路径**
 * - - - @SpringBootApplication(scanBasePackages = "com.atguigu")
 *    - @ComponentScan("com.atguigu")` 直接指定扫描的路径
 */
@SpringBootApplication
public class MyApplication {
    public static void main(String[] args) {
       SpringApplication.run(MyApplication.class,args);
    }
}
